package com.aisb.core;

public class Result<T> {
	private boolean code;

	private T data;

	private String msg;

	public Result(boolean c, T d) {
		this.code = c;
		this.data = d;
	}

	public Result(boolean c, String m) {
		this.code = c;
		this.msg = m;
	}

	public boolean isCode() {
		return code;
	}

	public void setCode(boolean code) {
		this.code = code;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
